﻿package cookinmaddy.client;

import js.Dom;
import js.Lib;

/**
 * ...
 * @author Yog
 */

class JSMain 
{
	static var unitview : UnitView;
	static var topmenu : TopMenu;
	static var ingredientview : IngredientView;
	static var recipeview : RecipeView;
    static function main() 
	{
		IngredientView.DOC_ID = "main";
		UnitView.DOC_ID = "main";
		RecipeView.DOC_ID = "main";
		TopMenu.DOC_ID = "topmenu";
		unitview = new UnitView();
		ingredientview = new IngredientView();
		recipeview = new RecipeView();
		topmenu = new TopMenu(unitview, ingredientview, recipeview);
		topmenu.show();
	}	
}